<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

class HomeController extends Controller
{
    public function index()
    {
        return view('admin.home');
    }

    public function webIndex()
    {
        if ( ! session('admin_username') )
        {
            return redirect()->route('web-login');
        }

        return view('admin.web-home');
    }
}
